package com.mars.mapper;

import com.mars.bean.Books;

import java.util.List;

public interface BookMapper {

    // 增
    int addBook(Books book);

    // 删
    int deleteBookById(int id);

    // 改
    int updateBook(Books book);

    // 根据id查
    Books queryBookByID(int id);

    // 查全部书
    List<Books> queryAllBook();

}
